﻿using CaffeeBuzz_WinForm.Cafe;
using CaffeeBuzz_WinForm.Food;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CaffeeBuzz_WinForm.BuzzMenu
{
    public class LunchMenu:Menu
    {
        const int MAX_ITEM = 6;
        private Item[] Items;
        private int numberOfItem = 0;

        public LunchMenu()
        {
            this.name = "Lunch Menu";
            this.condiments = new List<Condiment>();
            condiments.Add(new Soy());
            Items = new Item[MAX_ITEM];
            AddItem("Soud of the Day",
                "Our chef’s daily favourite served with freshly baked garlic dough balls.",
                10);
            AddItem("Burschetta",
                "A homemade mix of fresh tomato, red onion, basil, olive oil and cracked black pepper served over toasted garlic ciabatta bread, finished with a balsamic glaze",
                20);
            AddItem("Amazing Skins",
                "Mouth-watering and fully loaded! Choose from BBQ chicken, sweetcorn & cheddar; crispy bacon & cheddar or melted goat's cheese & home made bruschetta. Served with sour cream on the side.",
                15);
            AddItem(new DarkRoast());
            AddItem(new Lasagne());
        }

        public override void AddItem(string name, string des, double price)
        {
            Item item = new Item(name, des, price);
            AddItem(item);
           
        }

        public override void AddItem(Item i)
        {
            if (numberOfItem >= MAX_ITEM)
                Console.WriteLine("Sorry, can't add more..");
            else
            {
                Items[numberOfItem] = i;
                numberOfItem++;
            }
        }


        public override Iterator CreateIterator()
        {
            return new LunchMenuIterator(Items);
        }
       
       
    }
}
